
export const padZero = (n: string | number): string=>{
    return n>10 ? ""+n: '0'+n
}

export const formDate = ():string => {
    const date = new Date()
    const yy = date.getFullYear()
    const MM = date.getMonth() + 1
    const dd = date.getDate()
    return `${yy}-${padZero(MM)}-${padZero(dd)}`
}